package client

import (
	. "starsine.cn/appTpl/cmn/defs"
	"starsine.cn/appTpl/cmn/logs"
	"starsine.cn/appTpl/svcpeers"
)

var svcDepStatus *SvcDepStatus = nil

func Start(appCtxt *AppContext) {
	svcpeers.Start(appCtxt)

	svcDepStatus = CreateSvcDepStatus(appCtxt)
	svcDepStatus.Start()

	logs.Infof("peers.client start")
}

func DumpSvcDepStatus() string {
	return svcDepStatus.String()
}
